# -*- coding:utf-8 -*-
# Instalação customizada.

from Products.CMFCore.utils import getToolByName

right = ['here/portlet_normas/macros/portlet']
left = ['here/portlet_servicos/macros/portlet']

def install(self):

    # Instalando os portlets
    portal = getToolByName(self,'portal_url').getPortalObject()
    for slot in right:
        if slot not in portal.right_slots:
            portal.right_slots =  [slot] + list(portal.right_slots)
            
    for slot in left:
        if slot not in portal.left_slots:
            portal.left_slots =  [slot] + list(portal.left_slots)
 

#def uninstall()
